<template>
    <div class="boxCard">
        <div class="box">
            <div class="boxLeftBorder"></div>
            <div class="title">{{title}}</div>
            <div class="back">
                <slot name="back"></slot>
            </div>
        </div>
        <slot/>
    </div>
</template>

<script>

    import { defineComponent } from 'vue'
    export default defineComponent({
        name: 'WorkBenchCard',
        props:{
            title:""
        },
        data() {
            return {

            }
        },
        methods: {

        }
    })
</script>

<style scoped lang="scss">
    .boxCard{
        .box{
            padding: 16px 14px;
            position: relative;
            display: flex;
            align-items: center;
            border-bottom: 1px solid #E4E7ED;
            .title{
                font-weight: 400;
                font-size: 18px;
                line-height: 26px;
                color: #1C1C1E;
                flex: none;
            }
            .back{
                flex: 1;
                display: flex;
                justify-content: flex-end;
            }
            .boxLeftBorder{
                position: absolute;
                left: 1px;
                top: 50%;
                width: 7px;
                height: 20px;
                margin-top: -10px;
                background: #FBE5BB;
                border-radius: 0 3px 3px 0;
            }
        }
    }
</style>